(Fformat): Use alloca, not _alloca.
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 10 Dec 2002 07:40:11 +0000 (07:40 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 10 Dec 2002 07:40:11 +0000 (07:40 +0000)
src/editfns.c

index 62bd324dfc1b45ecfca7b2e3d82c50d3b3bc7e59..6deb9b96f8ab3190eee1a57d43d560840fbebe77 100644 (file)
@@ -3212,7 +3212,7 @@ usage: (format STRING &rest OBJECTS)  */)
      string itself, will not be used.  Element NARGS, corresponding to
      no argument, *will* be assigned to in the case that a `%' and `.'
      occur after the final format specifier.  */
-  int * precision = (int *) (_alloca(nargs * sizeof (int)));
+  int *precision = (int *) (alloca(nargs * sizeof (int)));
   int longest_format;
   Lisp_Object val;
   struct info
@@ -3385,10 +3385,8 @@ usage: (format STRING &rest OBJECTS)  */)
            /* Note that we're using sprintf to print floats,
               so we have to take into account what that function
               prints.  */
-           /* Filter out flag value of -1.  This is a conditional with omitted
-              operand: the value is PRECISION[N] if the conditional is >=0 and
-              otherwise is 0. */
-           thissize = MAX_10_EXP + 100 + ((precision[n] > 0)?precision[n]:0);
+           /* Filter out flag value of -1.  */
+           thissize = MAX_10_EXP + 100 + ((precision[n] > 0) ? precision[n] : 0);
          }
        else
          {